package com.totoro.tyrank.constants;

import com.totoro.tyrank.TyRank;
import com.totoro.tyrank.utils.ColorUtil;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;

import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;
import java.util.*;

public class StaticSystemVarConst {
    public static final String CONSOLE_PREFIX = ColorUtil.color("&6[TyRank] ");
    /* 空Map */
    public static final Map EMPTY_MAP = Collections.emptyMap();
    /* 空List */
    public static final List EMPTY_LIST = Collections.emptyList();
    /* 所有排行榜配置文件夹默认保存路径 */
    public static final String RANK_CONFIG_DEFAULT_NAME = "rank";
    /* 语言配置文件默认保存路径 */
    public static final String LANGUAGE_CONFIG_DEFAULT_NAME = "language.yml";
    /* 排行榜持久化数据文件默认保存路径 */
    public static final String RANK_DATA_DEFAULT_NAME = "rankdata.yml";
    /* 所有排行榜玩家数据文件夹默认保存路径 */
    public static final String PLAYER_DATA_CONFIG_DEFAULT_NAME = "playerdata";
    /* 对应操作系统的文件分隔符 */
    public static final String FILE_SEPARATOR = System.getProperty("file.separator");
    /* language中对应的Gui配置名 */
    public static final String LANGUAGE_GUI = "gui";
    /* language中对应的Msg配置名 */
    public static final String LANGUAGE_MSG = "msg";
    /* 时间统一格式 */
    public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(TyRank.getConfigManager().getConfigData().getDateFormat());
    /* 时间统一格式 */
    public static final SimpleDateFormat SIMPLE_DATE_FORMATTER = new SimpleDateFormat(TyRank.getConfigManager().getConfigData().getDateFormat());
    /* 空ItemStack */
    public static final ItemStack EMPTY_ITEM_STACK = new ItemStack(Material.NETHER_STAR, 1, (short) 0);
}
